package com.book.controller.admin;

import static com.github.drinkjava2.jsqlbox.DB.pagin;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.book.entity.BookChapter;
import com.book.entity.BookInfo;


/**
*
*     后台管理首页控制类
* 
*/

@Controller
@RequestMapping("/admin")
public class AdminController {

	
	public AdminController() {
		super();
	}
/**
 *	后端管理首页页面 
 * @return
 */
	
	@GetMapping ({ "" , "/" })
	public ModelAndView index() {
	
		ModelAndView mv = new ModelAndView();
		mv.addObject("test","后台测试页面");
		mv.setViewName("admin/login");
		
		return mv;
		
	}
	

	
	
}
